﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FrmTipoDocumentoCheque.aspx.cs" Inherits="UI.Tesoreria.FrmTipoDocumentoCheque" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style4
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            line-height: 16px;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 23px;
        }
         .styleCOntrolIngreso
        {
            width: 60px;
            height: 26px;
        }
        .style33
        {
            width: 11px;
            height: 26px;
        }
        .style32
        {
            width: 12px;
            height: 26px;
        }
        .botoncito
        {
            height: 26px;
        }
        .style34
        {
            width: 778px;
        }
        .style10
        {
            height: 26px;
            width: 8px;
        }
                        
        .styleLabel
        {
            width: 10px;
            height: 26px;
        }
         .style22
        {
            height: 32px;
            width: 8px;
        }
        .style23
        {
            width: 60px;
            height: 32px;
        }
        .style11
        {
            height: 25px;
            width: 8px;
        }
        .style2
        {
            height: 25px;
        }
                
        .style24
        {
            width: 87px;
            height: 7px;
        }
        .style25
        {
            height: 7px;
        }
        .style5
        {
            height: 25px;
            width: 87px;
        }
        .style26
        {
            width: 87px;
            height: 11px;
        }
        .style20
        {
            width: 111px;
            height: 11px;
        }
        .style21
        {
            height: 11px;
        }
        .style18
        {
            height: 29px;
            width: 87px;
        }
        .style19
        {
            height: 29px;
        }
        .style6
        {
            width: 87px;
        }
        .style16
        {
            height: 28px;
            width: 111px;
        }
        .style15
        {
            height: 22px;
        }
        .style9
        {
            height: 21px;
        }
        .style17
        {
            height: 28px;
        }
        .style27
        {
            width: 235px;
        }
        .style13
        {
            width: 236px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<asp:UpdatePanel ID="panelActualizar" runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="GridTipoDocumento"/>
    </Triggers>
    <ContentTemplate>


    <table dir="ltr" frame="box">
        <tr>
            <td  class="style4" colspan="7">
                            FILTROS</td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="lblCodigo" runat="server" Text="Codigo"></asp:Label>
            </td>
            <td class="styleCOntrolIngreso">
                <asp:TextBox ID="txtCodigoFiltro" runat="server" Height="16px" Width="89px"></asp:TextBox>
            </td>
            <td class="style33">
            </td>
            <td class="styleCOntrolIngreso">
                <asp:Label ID="Label10" runat="server" Text="Nombre"></asp:Label>
            </td>
            <td class="styleCOntrolIngreso">
                <asp:TextBox ID="txtNombreFiltro" runat="server" Height="18px" Width="234px"></asp:TextBox>
            </td>
            <td class="style32">
            </td>
            <td class="styleCOntrolIngreso">
                <asp:Button ID="btnBuscar" runat="server" CssClass="botoncito" Text="Buscar" 
                                onclick="Button1_Click" />
            </td>
        </tr>
    </table>

        <asp:Label ID="LabelErrorListado" runat="server" Font-Bold="True" 
            ForeColor="Red"></asp:Label>

        <br />
        <table style="width: 868px" >
            <tr>
                <td class="style34" >
                    </td>
                <td >
                    <asp:Button ID="btnNuevo" runat="server" Height="32px" 
                        OnClick="btnNuevo_Click" Text="Nuevo" Width="88px" />
                </td>
            </tr>
        </table>

        <asp:GridView ID="GridTipoDocumento" runat="server" 
            AutoGenerateColumns="False" Width="876px" 
            onrowediting="GridTipoDocumento_RowEditing" DataKeyNames="id" 
            onrowcommand="GridTipoDocumento_RowCommand" 
            onselectedindexchanging="GridTipoDocumento_SelectedIndexChanging" 
   >
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" Visible="False" />
                <asp:BoundField DataField="Codigo" HeaderText="Codigo" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="Serie_Codigo" HeaderText="Serie_Codigo" />
                <asp:BoundField DataField="NumeracionActual" HeaderText="Numeracion Actual" />
                <asp:BoundField DataField="UsuarioCreador" HeaderText="Creador" />
                <asp:BoundField DataField="FechaCreacion" HeaderText="F. Creacion" />
                <asp:BoundField DataField="UsuaroModifcado" HeaderText="Modifcado Por" />
                <asp:BoundField DataField="FechaModificacion" HeaderText="F.  Modificacion" />


                <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="modificar" Runat="server" 
                    CommandName="Modificar">
                    Modificar
                    </asp:LinkButton>
                </ItemTemplate>
                </asp:TemplateField> 

                <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="eliminar" Runat="server" 
                    OnClientClick="return confirm('¿Desea eliminar el registro?');" 
                        CommandName="Eliminar">
                    Eliminar
                    </asp:LinkButton>
                </ItemTemplate>
                </asp:TemplateField> 

            </Columns>
        </asp:GridView>


    </ContentTemplate>
    </asp:UpdatePanel>



       <asp:UpdatePanel ID="panelActualizarMantenimiento" runat="server">
   <Triggers>
        <%--<asp:PostBackTrigger ControlID="btnBuscar" />--%>   
    </Triggers>
   <ContentTemplate>
 

     <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
        Width="457px">
        <asp:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
            

            <HeaderTemplate>
                

                Numeración

            
</HeaderTemplate>
            

            
<ContentTemplate>
                

                <table class="style1">
                    

                    <tr>
                        

                        <td class="style4" colspan="2">
                            

                            DATOS GENERALES</td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style10">
                            

                            <asp:Label ID="Label4" runat="server" CssClass="leftColumn" Text="CODIGO"></asp:Label>

                            

                        </td>
                        

                        <td class="styleCOntrolIngreso">
                            

                            <asp:TextBox ID="txtCodigo" runat="server" CssClass="textEntry" Height="19px" 
                                onkeypress="isNumberOrLetter()"></asp:TextBox>

                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style10">
                            

                            <asp:Label ID="Label6" runat="server" Text="NOMBRE"></asp:Label>

                            

                        </td>
                        

                        <td class="styleCOntrolIngreso">
                            

                            <asp:TextBox ID="txtNombre" runat="server" CssClass="textEntry" Height="20px" 
                                Width="360px" onkeypress="isNumberOrLetter()"></asp:TextBox>

                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style10">
                            

                            <asp:Label ID="Label7" runat="server" Text="IMPUESTO"></asp:Label>

                            

                        </td>
                        

                        <td class="styleLabel">
                            

                            <asp:TextBox ID="txtImpuesto" runat="server" Height="20px" Width="83px" 
                                onkeypress="ValidaSoloNumeros()"></asp:TextBox>

                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style11">
                            

                            <asp:Label ID="labelID" runat="server" Visible="False"></asp:Label>

                            

                        </td>
                        

                        <td class="style2">
                            

                        </td>
                        

                    </tr>
                    

                </table>
                

                <br />
                

                <br />
                

                <table class="style1">
                    

                    <tr>
                        

                        <td class="style4" colspan="5">
                            

                             SERIE DEL DOCUMENTO</td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style24">
                            

                        </td>
                        

                        <td class="style25">
                            

                        </td>
                        

                        <td class="style25">
                            

                        </td>
                        

                        <td class="style25">
                            

                        </td>
                        

                        <td class="style25">
                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style5">
                            

                            <asp:Label ID="Label8" runat="server" Text="SERIE"></asp:Label>

                            

                        </td>
                        

                        <td class="style2">
                            

                            <asp:TextBox ID="txtSerie" runat="server" Height="20px" Width="114px" 
                                onkeypress="isNumberOrLetter()"></asp:TextBox>

                            

                        </td>
                        

                        <td class="style2">
                            

                        </td>
                        

                        <td class="style2">
                            

                        </td>
                        

                        <td class="style2">
                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style26">
                            

                            </td>
                        

                        <td class="style20">
                            

                            </td>
                        

                        <td class="style21">
                            

                            </td>
                        

                        <td class="style21">
                            

                            </td>
                        

                        <td class="style21">
                            

                            </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style4" colspan="5">
                            

                             NUMERACION DEL DOCUMENTO</td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style18">
                            

                            ACTUAL</td>
                        

                        <td class="style19">
                            

                            <asp:TextBox  ID="txtNumeracionActual" runat="server" Height="19px" 
                                Width="61px" onkeypress="ValidaSoloNumeros()"></asp:TextBox>

                            

                        </td>
                        

                        <td class="style19">
                            

                            </td>
                        

                        <td class="style19">
                            

                            LONGITUD</td>
                        

                        <td class="style19">
                            

                            <asp:TextBox ID="txtNumeracionLongitud" runat="server" Height="20px" 
                                Width="109px" onkeypress="ValidaSoloNumeros()"></asp:TextBox>

                            

                        </td>
                        

                    </tr>
                    

                    <tr>
                        

                        <td class="style6">
                            

                            HASTA</td>
                        

                        <td class="style16">
                            

                            <asp:TextBox ID="TxtNumeracionHasta" runat="server" Height="19px" Width="60px" 
                                onkeypress="ValidaSoloNumeros()"></asp:TextBox>

                            

                        </td>
                        

                        <td class="style15">
                            

                            </td>
                        

                        <td class="style9">
                            

                            </td>
                        

                        <td class="style17">
                            

                            </td>
                        

                    </tr>
                    

                </table>
                

                <br />
                

                <asp:Label ID="LabelError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>

                

                <br />
                

                <br />
                

                <table class="style1" style="width: 54%">
                    

                    <tr>
                        

                        <td class="style27">
                            

                            <asp:Button ID="btnNuevoTipoCp" runat="server" CssClass="botoncito" 
                                Text="Grabar" onclick="btnNuevoTipoCp_Click" />

                            

                        </td>
                        

                        <td class="style13">
                            

                            <asp:Button ID="BtnCancelarCp" runat="server" CssClass="botoncito" 
                                onclick="BtnCancelarCp_Click" Text="Cancelar" />

                            

                        </td>
                        

                        <td class="style16">
                            

                            &nbsp;</td>
                        

                    </tr>
                    

                </table>
                

                <br />
                

            
</ContentTemplate>
            

        
</asp:TabPanel>
    </asp:TabContainer>
  
    </ContentTemplate>
   </asp:UpdatePanel>
    
    <asp:HiddenField ID="HiddenFiel1" runat="server" />
    <asp:ModalPopupExtender ID="formularioNuevo" runat="server" PopupControlID="panelActualizarMantenimiento"
        TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground" >
    </asp:ModalPopupExtender>


           
    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="panelActualizarMantenimiento" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px; bottom: 296px;">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>

     
     

    </asp:Content>
